package org.dromara.finance.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.finance.domain.SaleInvoice;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SaleInvoice.class, reverseConvertGenerate = false)
public class SaleInvoiceBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 销售合同id
     */
    @NotNull(message = "销售合同id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long saleContractId;

    private String saleContractNum;

    private String saleInvoiceNum;
    private String projectName;
    private Long customerId;
    private Long transportSection;

    private List<SaleInvoiceListBo> saleInvoiceList;
    private String remark;


}
